home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_75.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  132KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | poster | reckoner | sky
OCR: TateRother method IS comparin athenbtobside nMa cpositions totherwallecopdinatos. 7t5age Because we have defined the window, we know the limits of it By comparing the blobs horizontal and vertical positions with the limits of the window we can determine if the blob IS about to hit a wall as per the following pseudo code Check blob If blob is less than left of window then reverse blob direction. or If blob is greater than right of window then reverse blob x direction. Check blob If blob~y is less than top of window then reverse direction. or If blob is greater than bottom of window then reverse direction. Note that if one of the conditions are true there 15 no point in checking the opposite condition for example f blob IS greater than the bottom of the window then there no point in checking ...